package com.spzx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.api.domain.Brand;
import com.spzx.product.domain.CategoryBrand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: CategoryBrandMapper
 * Package: com.spzx.product.mapper
 * Description:
 *
 * @Author ycy
 * @Create 2024/9/2 21:21
 * @Version 1.0
 */
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {

    /**
     * 查询分类品牌列表
     *
     * @param categoryBrand 分类品牌
     * @return 分类品牌集合
     */
    public List<CategoryBrand> selectCategoryBrandList(CategoryBrand categoryBrand);

    public List<Brand> selectBrandListByCategoryId(@Param("categoryId")Long categoryId);
}
